def call(robot, number, version, branch){

    def d200Robot = [
        'packageName' : "D200_${version}_${number}.zip",
        'artifactory' : "D200Robot/Release",
        'localDir' : './',
        'localPackage' : './',
        'config' : 'config.json',
        // 'username' : 'robot',
        // 'password' : '963852',
        // 'port' : '22',
        'devices' : [
            'arm' : [
                'user' : 'robot',
                'password' : '963852',
                'ip' : '192.168.0.13',
                'port' : 22,
                'using_sftp' : true,
                'local_package' : "/home/robot/update/arm_install_D200_${branch}.tar.gz",
                'remote_package' : "/home/robot/update/arm_install.tar.gz",
                'using_ssh' : true,
                'update_cmd' : 'cp ~/update/arm_update.sh ~/ &&  chmod +x ~/arm_update.sh && ./arm_update.sh',
                'chip_no' : -1,
                "using_serial": false,
                "file": ''
            ],
            'ptz' : [
                'user' : 'robot',
                'password' : '963852',
                'ip' : '192.168.0.14',
                'port' : 22,
                'using_sftp': true,
                'local_package' : "/home/robot/update/ptz_install_D200_${branch}.tar.gz",
                'remote_package' : "/home/robot/update/ptz_install.tar.gz",
                'using_ssh' : true,
                'update_cmd' : 'cp ~/update/ptz_update.sh ~/ &&  chmod +x ~/ptz_update.sh && ./ptz_update.sh',
                "chip_no": -1,
                "using_serial": false,
                "file": ""
            ],
            'ipc' : [
                'user' : 'robot',
                'password' : '963852',
                'ip' : '192.168.0.10',
                'port' : 22,
                'using_sftp' : false,
                'local_package' : "/home/robot/update/install_D200_${branch}.tar.gz",
                'remote_package' : "/home/robot/update/install.tar.gz",
                'using_ssh' : false,
                'update_cmd' : 'cp /home/robot/update/update.sh /home/robot/ && chmod +x /home/robot/update.sh && cd /home/robot && ./update.sh',
                "chip_no": -1,
                "using_serial": false,
                "file": ""
                ],
            'tomcat' : [
                'user' : 'robot',
                'password' : '963852',
                'ip' : '192.168.0.10',
                'port' : 22,
                'using_sftp' : false,
                'local_package' : "/home/robot/update/CoreBusinessServer.war",
                'remote_package' : "/opt/tomcat/webapps/CoreBusinessServer.war",
                'using_ssh' : false,
                'update_cmd' : 'cd /home/robot/ && ./java_update.sh',
                "chip_no": -1,
                "using_serial": false,
                "file": ""
            ],
            'edp_ctrl' : [
                "user" : "",
                "password": "",
                "ip":"192.168.0.24",
                "port":9999,
                "using_sftp": false,
                "local_package":"/home/robot/update/OUT/D200_NEW_EDP_CTRL/D200_NEW_EDP_CTRL_V10.hex",
                "remote_package":"",
                "using_ssh": false,
                "update_cmd":"",
                "chip_no": 2,
                "using_serial": false,
                "file": "D200_NEW_EDP_CTRL"
            ],
            'twist_ctrl' : [
                "user" : "",
                "password": "",
                "ip":"192.168.0.27",
                "port":9999,
                "using_sftp": false,
                "local_package":"/home/robot/update/OUT/D200_NEW_TWIST_CTRL/D200_NEW_TWIST_CTRL.hex",
                "remote_package":"",
                "using_ssh": false,
                "update_cmd":"",
                "chip_no": 5,
                "using_serial": false,
                "file": "D200_NEW_TWIST_CTRL"
            ],
            'nav_ctrl' : [
                "user" : "",
                "password": "",
                "ip":"192.168.0.26",
                "port":9999,
                "using_sftp": false,
                "local_package":"/home/robot/update/OUT/D200_NAVI_CTRL/D200_NAVI_CTRL.hex",
                "remote_package":"",
                "using_ssh": false,
                "update_cmd":"",
                "chip_no": 4,
                "using_serial": false,
                "file": "D200_NAVI_CTRL"
            ],
            'arm_ctrl' : [
                "user" : "",
                "password": "",
                "ip":"192.168.0.25",
                "port":9999,
                "using_sftp": false,
                "local_package":"/home/robot/update/OUT/D200_ARM_CTRL/D200_ARM_CTRL_V10.hex",
                "remote_package":"",
                "using_ssh": false,
                "update_cmd":"",
                "chip_no": 3,
                "using_serial": false,
                "file": "D200_ARM_CTRL"
            ],
            "chassis_ctrl": [
                "user" : "",
                "password": "",
                "ip":"192.168.0.23",
                "port":9999,
                "using_sftp": false,
                "local_package":"/home/robot/update/OUT/D200_NEW_CHASSIS_CTRL/D200_NEW_CHASSIS_CTRL.hex",
                "remote_package":"",
                "using_ssh": false,
                "update_cmd":"",
                "chip_no": 1,
                "using_serial": false,
                "file": "D200_NEW_CHASSIS_CTRL"
            ]
        ]
    ]



    def deployTemplate = [
        'D200' : d200Robot
    ]

    return deployTemplate.get(robot)

}